package TVPractice;

public class TV {
    private int channel =2;
    private int volume;

    public TV(int channel,int volume){
        this.setChannel(channel);
        this.setVolume(volume);
    }

    public void setChannel(int channel){
        if (channel>999||channel<2){
            return;
        }
        this.channel = channel;
    }

    public void setVolume(int volume){
        if (volume>10||volume<0){
            return;
        }
        this.volume = volume;
    }


    public int getChannel(){
        return this.channel;
    }

    public int getVolume(){
        return this.volume;
    }
}
